<?php
class CModule
{

	/**
	 * Constructor of class CModule.
	 *
	 * @return void
	 */
	public function __construct()
	{
		// ...
	}
	
	function IncludeModule($module_name) {
		global $MAIN_MODULE_INCLUDED;
		if(!file_exists($_SERVER["DOCUMENT_ROOT"]."monotrix/modules/".$module_name."/include.php"))
		{
			$MAIN_MODULE_INCLUDED[$module_name] = false;
			return false;
		}

		$res = include_once($_SERVER["DOCUMENT_ROOT"]."monotrix/modules/".$module_name."/include.php");
		if($res === false)
		{
			$MAIN_MODULE_INCLUDED[$module_name] = false;
			return false;
		}

		$MAIN_MODULE_INCLUDED[$module_name] = true;
		return true;
	}

	// ...

}
